<template>
  <div>
    <h1>Test测试组件</h1>
    <button @click="handler">点我发送请求</button>
  </div>
</template>

<script>
import ajax from '@/api/ajax'
export default {
  name: 'Test',
  methods: {
    async handler() {
      const result = await ajax({
        url: '/product/getBaseCategoryList',
        method: 'get',
      })
      console.log(result)
    },
  },
}
</script>

<style lang="less" scoped></style>
